package com.zw.stock_sell_storage.controller;

import com.zw.stock_sell_storage.dto.TypeDto;
import com.zw.stock_sell_storage.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/type")
public class TypeController {
    @Autowired
    ITypeService iTypeService;
    @RequestMapping("/queryType")
    public List<TypeDto> queryType(int typeCode){
        return  iTypeService.queryType(typeCode);
    }
}
